package com.xsp.service.Impl;

import com.xsp.dao.BookInfoMapper;
import com.xsp.entity.BookInfo;
import com.xsp.service.BookInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author xsp
 * @date 2024/1/17
 * @desc
 */
//@Service("bookInfoServiceImpl2")
public class BookInfoServiceImpl2 implements BookInfoService {
    // 字段注入
    @Autowired
    @Qualifier("bookInfoMapperImpl")
    private BookInfoMapper bookInfoMapper;



    @Override
    public void addBook(BookInfo bookInfo) {
        bookInfoMapper.insert(bookInfo);
        System.out.println("添加成功");
    }
}
